package com.yql.entity;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

public class Menu {
    private Integer id;
    @JsonProperty("text")
    private String name;
    @JsonProperty("href")
    private String url;
    private Integer pid;
    @JsonProperty("nodes")
    private List<Menu> menuList;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public List<Menu> getMenuList() {
        return menuList;
    }

    public void setMenuList(List<Menu> menuList) {
        this.menuList = menuList;
    }
}
